class Solution {
public:
    int findLengthOfLCIS(vector<int>& nums) {
        int ret=0,n=nums.size();
        for(int i=0;i<n;)
        {
            int j=i+1;
            while(j<n && nums[j]>nums[j-1])j++;
            ret=max(ret,j-i);
            i=j;
        }
        return ret;
    }
};
